<div class="head">
    <!-- 账号 -->
    <div class="global_bar" id="loginBar">
        <div class="inner wrp">
            &nbsp;
            {% if user_info %}
                <div class="account" id="loginAccount">
                    <a href="javascript:void(0);" title="{{ user_info.email }}" data-url="account" target="_self" class="account_meta no_extra jsUrlLink">
                        {{ user_info.email }}
                    </a>
                    <a href="javascript:void(0);" data-url="home/notice" target="self" class="account_meta jsUrlLink jsNotice">通知<i class="icon_common notices jsDot" style="display:none"></i></a>
                    <a href="{% url 'smErp:logout' %}" class="account_meta" target="_self">退出</a>
                </div>
            {% else %}
                <div class="account" id="loginAccount">
                    <a id="account-login" href="javascript:void(0);" title="" data-url="" target="_self" class="account-login account_meta no_extra jsUrlLink">
                        登录
                    </a>
                    <a href="{% url "smErp:register" %}" target="_self" class="account_meta jsUrlLink jsNotice">注册<i class="icon_common notices jsDot" style="display:none"></i></a>
{#                <a href="/cgi-bin/logout" class="account_meta" target="_self">退出</a>#}
                </div>
            {% endif %}
        </div>
    </div>

    <!-- 顶部导航 -->
    <div class="head_box">
        <div class="inner wrp">
            <h1 class="logo">
                <a href="/" class="jsUrlLink" data-url="home/index" target="self" title="中国保健品质量溯源平台">中国保健品质量溯源平台</a>
            </h1>
            <ul class="nav_bj" id="menu_nav">
                <li class="nav_item jsNavItem" data-id="index"><a href="/smErp/index"  data-url="/smErp/index" class="jsUrlLink">首页</a></li>
{#                <li class="nav_item jsNavItem" data-id="resource"><a href="/smErp/resource"  data-url="/smErp/resource" class="jsUrlLink">资源中心</a></li>#}
                {% if user_info %}
                    <li class="nav_item jsNavItem" data-id="manage"><a href="/smErp/manage"  data-url="/smErp/manage"  class="jsUrlLink">管理中心</a></li>
                    <li class="nav_item jsNavItem" data-id="statistics"><a href="/smErp/statistics"  data-url="/smErp/statistics"  class="jsUrlLink" data-login="true">数据中心</a></li>
                    <li class="nav_item jsNavItem" data-id="account"><a href="/smErp/account"  data-url="/smErp/account" class="jsUrlLink" data-login="true">帐号中心</a></li>
                {% else %}
                {# 弹出登录窗口                   #}
                    <li class="account-login nav_item jsNavItem" data-id="manage"><a href="javascript:void(0);"  data-url="/smErp/manage"  class="jsUrlLink">管理中心</a></li>
                    <li class="account-login nav_item jsNavItem" data-id="statistics"><a href="javascript:void(0);"  data-url="/smErp/statistics"  class="jsUrlLink" data-login="true">数据中心</a></li>
                    <li class="account-login nav_item jsNavItem" data-id="account"><a href="javascript:void(0);"  data-url="/smErp/account" class="jsUrlLink" data-login="true">帐号中心</a></li>
                {% endif %}
            </ul>
        </div>
    </div>
</div>